package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.DeviceNoBackList;
import com.sc.nft.mapper.DeviceNoBackListMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 设备黑名单(sc_device_no_back_list)数据DAO
 *
 * @author Sun
 * @since 2024-05-29 13:38:38
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class DeviceNoBackListDao extends ServiceImpl<DeviceNoBackListMapper, DeviceNoBackList> {

    public List<String> getDeviceNoList() {
        LambdaQueryWrapper<DeviceNoBackList> wrapper = new LambdaQueryWrapper<>();
        wrapper.select(DeviceNoBackList::getDeviceNo);
        return listObjs(wrapper, x->(String) x);
    }
}